package jsyf.oa.facade.email;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by LT on 2018/3/7.
 */
@Path("/sendEmailService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface SentEmailFacade {
    @Path("/findSendList")
    //获取列表
   JSONObject findSentList(String createUserId,String searchKey,int requestPage,int pageSize);
    //获取内容
    @Path("/findSentById")
    JSONObject findSentById(String id);
    //删除邮件
    @Path("/removeSentById")
    Boolean removeSentById(String id);
}